package com.kyrioscraft.cloud.security.simpleformdemo;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author kyrioscraft
 * @Date 2018/12/24 17:25
 * @Description //TODO
 **/
@Controller
public class TestController {

    @Autowired
    private ObjectMapper objectMapper;


    @RequestMapping("/test")
    @ResponseBody
    public String test() {
        return "test json";
    }
}
